<?php

/**
 * 优惠领取信息
 * @author Ice <iceinto@mallog.com.cn>
 */
class LimitedUsersModel extends BaseModel
{
    public function getCount($lid){
        $map = array();
        $map['lid'] = $lid;
        return $this->where($map)->count();
    }

    public function getStatusCount($lid, $status){
        $map = array();
        $map['lid'] = $lid;
        $map['status'] = $status;
        return $this->where($map)->count();
    }
}